import service from '@/utils/request'


// 获取合同管理
export const getcontractList = (data) => {
    return service({
        method: 'post',
        url: '/contract/getcontractList',
        data
    })
}

// 删除文件
export const deleteContract = (data) => {
    return service({
        method: 'post',
        url: '/contract/deleteContract',
        data
    })
}

// 下载
export const downloadFiles = (data) => {
    return service({
        method: 'post',
        responseType: 'blob',
        url: '/contract/downloadFiles',
        data
    })
}
// 更新下载次数
export const updateDownloadNumber = (data) => {
    return service({
        method: 'post',
        url: '/contract/updateDownloadNumber',
        data
    })
}